<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$username?>收藏的菜单_<?=$this->config->item('site_name');?></title>

	<meta name="keywords" content="<?=$this->config->item('site_keywords');?>" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/usercenter.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/tempo.min.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>

<? $this->load->view('auth/user_menu'); ?>

<div class="user_main clearfix">
		<div class="user_inner_tab">
			<ul class="user_inner_tab_ul">
				<li><a href="<?=site_url('/u/'.$uid.'/caidan')?>" class="link">我的菜单</a></li>
				<li><a href="<?=site_url('/u/'.$uid.'/fav_cd')?>" class="current link">收藏的菜单</a></li>
			</ul>
		</div>
		<?php if($user_fav_caidan):?>
		<div class="listtyle_cd1 clearfix">
			<?php foreach( $user_fav_caidan as $caidan) :?>
			<div class="user_cditem clearfix">
				<div class="l">
					<div class="author">
						<a href="<?=site_url('u/'.$caidan['uid'])?>" class="img"><img src="<?=$this->user_login->get_avatar_dir($caidan['uid']);?>"></a><a href="<?=site_url('u/'.$caidan['uid'])?>" class="t">看TA主页</a>
					</div>
				</div>
				<div class="r">
					<div class="user_cditem_c">
						<dl>
							<dt>
								<div class="user_cditem_h"><a href="<?=site_url('caidan/views/'.$caidan['id'])?>"><?=$caidan['title']?></a></div>
								<p class="para"><?=cutstr($caidan['desc'], '70')?></p>
								<span class="author">最近修改：<?=date('Y-m-d', $caidan['uptime'])?><strong></strong></span>
							</dt>
							<dd>
								<?php foreach($this->Caidan_mdl->get_caipu_by_caidan($caidan['id'], 0, 4)->result_array() as $caipu) :?>
								<a href="<?=site_url('recipe/'.$caipu['id'])?>"><img src="<?=server_img($caipu['coverImage'])?>"><strong class="pngFix"><?=$caipu['title']?></strong></a>
								<?php endforeach;?>
							</dd>
						</dl>
					</div>
				</div>
			</div>
			<?php endforeach;?>
		</div>
		<?php else:?>
		<div class="nocontenttt">暂无数据</div>
		<?php endif;?>
</div>






<div class="pager mt30 mb30"><?= $this->pagination->create_links();?></div>

<? $this->load->view('footer'); ?>